package com.zwr.sheller.core.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.cglib.core.FieldTypeCustomizer;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;


/**
 * @author 付龙江
 * @date 2022/1/11 19:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "goods_vo")
public class GoodsVo implements Serializable {

    @Id
    @Field(type = FieldType.Long)
    private Long id;

    @Field(type = FieldType.Long)
    private Long goodsSort;

    @Field(type = FieldType.Text)
    private String goodsName;

    @Field(type = FieldType.Text)
    private String goodsTitle;

    @Field(type = FieldType.Text)
    private String goodsKeyWord;

    @Field(type = FieldType.Text)
    private String goodsFirstItemName;

    @Field(type = FieldType.Long)
    private Long goodsFirstItemId;

    @Field(type = FieldType.Long)
    private Long goodsSecondItemId;

    @Field(type = FieldType.Long)
    private Long goodsThirdItemId;

    @Field(type = FieldType.Text)
    private String goodsUnit;

    @Field(type = FieldType.Text)
    private String goodsLabel1;

    @Field(type = FieldType.Text)
    private String goodsLabel2;

    @Field(type = FieldType.Text)
    private String goodsLabel3;

    @Field(type = FieldType.Long)
    private Long goodsLabelGroupId;
    @Field(type = FieldType.Text)
    private String goodsMainImg;

    @Field(type = FieldType.Double)
    private Double goodsDeliver;

    @Field(type = FieldType.Long)
    private Long storeId;

    @Field(type = FieldType.Text)
    private String goodsDesc;

    @Field(type = FieldType.Double)
    private Double goodsPrice;

    @Field(type = FieldType.Date)
    private Date goodsShelfTime;

    @Field(type = FieldType.Boolean)
    private Boolean goodsIsRecommend;

}
